
--解析城市坐标
mapBaseCfg = require "mapBaseCfg"



local arr = {}

for i,v in ipairs(mapBaseCfg) do
	if i % 3 == 1 then
		table.insert(arr , v)
	end
end


local step = 8
local newArr = {}
local newSum = 0
local mod = 40
local i = 1
local flag = false
while(i <= #arr ) do

	local v = arr[i]

	newSum = 0
	flag = false
	for j=0,step -1  do
		if not arr[i + j] then
			break
		end
		flag = true
		newSum = newSum + arr[i + j] * math.pow(mod, j)
	end
	if   flag then
		table.insert(newArr , math.floor(newSum))
	end

	i = i + step

end



local str = "local mapAreaBaseCfg = {"
for i,v in ipairs(newArr) do
	str = str ..v..","
end
str = str .. "}"
str = str .. "return mapAreaBaseCfg"
print (str)



